<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
		<td>
			<div class="blue-text16" style="margin: 0px 0px 0px 0px">
				<s:text name="mywantedsold.title" />
			</div>
			<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<div style="margin: 0px 0px 12px 0px">

				<!--------------------------------------------------------->
				<form name="ItemListForm" action="" method="post"></form>
				<table width="100%" cellpadding="6" cellspacing="1">
					<tbody>
						<tr>
							<td rowspan="3" align="center" valign="top" width="10%"
								class="grid-header-bg grid-header-text">
								<s:text name="label.system.Photo" />
							</td>
							<td align="center" valign="top" width="35%"
								class="grid-header-bg grid-header-text">
								<a href=""><s:text name="UserShop.para4" /> </a>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-header-bg grid-header-text">
								<s:text name="sellingfixprice.offer" />
							</td>

							<td align="center" valign="top" width="10%"
								class="grid-header-bg grid-header-text">
								<s:text name="UserShop.para5" />
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-header-bg grid-header-text">
								<a href=""><s:text name="sellingsold.bid" /> </a>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-header-bg grid-header-text" rowspan="3">
								<a href=""><s:text name="list_header_close_time" /> </a>
							</td>
							<td rowspan="3" align="center" valign="top" width="15%"
								class="grid-header-bg grid-header-text">
								<s:text name="advertisingWatchingothers.action" />
							</td>
						</tr>
						<tr>
							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="advertisingWatchingothers.subtitle" />
							</td>

							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="companyProfile.views" />
							</td>
							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="sellingauction.sold"  />
							</td>
							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="buyBiding.buynow"  />
							</td>
						</tr>
						<tr>
							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="sellingauction.itemnr"  />
							</td>
							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="sellingsold.status"  />
							</td>

							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="buyBiding.available"  />
							</td>
							<td align="center" valign="top"
								class="grid-header-bg grid-header-text">
								<s:text name="sellingauction.shipping"  />
							</td>
						</tr>
					</tbody>
				</table>
				<display:table name="wonlist" cellpadding="0" size="3" style="width: 100%;" cellspacing="1" requestURI="myWantedSold.htm" id="row" class="common-text" pagesize="${listingOptions.listingsItemsPerPage}">
				<display:column class="grid-bg common-text">
					<table width="100%">
						<tr>
							<td rowspan="3" width="10%"  align="center" valign="middle"
								class="grid-bg common-text">
								<s:if test="#attr.row.items.thumbImage != null && #attr.row.items.thumbImage !=''">
									<img src="servlet/ImageServlet?dto=ItemsDTO&id=<s:property value="#attr.row.items.itemId"/>"
										alt="" class="product-border" height="45" width="45">
								</s:if>
								<s:else><img src="images/no_image.gif" alt="No Image" height="35" width="45"/></s:else>
							</td>
							<td align="center" valign="top" width="25%"
								class="grid-bg common-text">
									<s:property value="#attr.row.items.title"/>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-bg common-text">
									<s:if test="#attr.row.items.acceptOffers ==1">
										Yes
									</s:if>
									<s:else>
										No
									</s:else>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-bg common-text">
								<s:property value="#attr.row.items.quantity"/>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-bg common-text">
								<s:property value="#attr.row.price"/>
							</td>
							<td align="center" valign="top"
								class="grid-bg common-text">
								<s:if test="%{#attr.row.items.closed}">
									<b>Closed</b>
								</s:if>
							</td>
							<td align="center" valign="top" class="grid-bg common-text" id="mddm" width="15%" >
								<a href="#" class="common-link"
									onmouseover="mopen('<s:property value="#attr.row.items.itemId" />', this, 'common-link', 'right', <s:property value="#attr.row.items.itemId" />)"
									onmouseout="mclosetime()"><s:text name="lable.select" /></a>
								<div id="<s:property value="#attr.row.items.itemId" />" onmouseover="mcancelclosetime()"
									onmouseout="mclosetime()" style="visibility: hidden">
									<a href="askSeller.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="Contact_Buyer" /></a>
									<a href="sendItemInvoice.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="Send_Invoice" /></a>
									<a href="viewBuyerItem.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="View_buyers_Other_Items" /></a>
									<a href="feedbackForBuyer.htm?cid=<s:property value="#attr.row.items.itemId" />"><s:text name="Leave_Feedback" /></a>
									<a href="addNotes.htm?cid=<s:property value="#attr.row.id" />&p=myWantedSold">
										<s:if test="#attr.row.note != null && #attr.row.note != ''"><s:text name="edit_note" /></s:if>
										<s:else><s:text name="lable.addnote" /></s:else>
									</a>
								</div>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top" width="35%"
								class="grid-bg common-text">
								<s:property value="#attr.row.items.subTitle"/>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-bg common-text">
								<s:property value="#attr.row.items.views"/>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-bg common-text">
								<s:property value="#attr.row.quantity"/>
							</td>
							<td align="center" valign="top" width="10%"
								class="grid-bg common-text">
								<s:property value="#attr.row.items.currency.symbol" /> <s:property value="#attr.row.items.buyPrice" />
							</td>
							<td align="center" valign="top"
								class="grid-bg common-text">
								<s:date name="#attr.row.items.endTime" format="dd/MM/yyyy hh:mm:ss"/>
							</td>
						</tr>
						<tr>
							<td align="center" valign="top"
								class="grid-bg common-text">
								<s:property value="#attr.row.items.itemId"/>
							</td>
							<td align="center" valign="top"
								class="grid-bg common-text">
								<s:text name="status"/>
							</td>
							<td align="center" valign="top"
								class="grid-bg common-text">
								<s:set name="finalQuntity" value="%{#attr.row.items.quantity - #attr.row.quantity}"> </s:set>
								<s:property value="#finalQuntity"/>
							</td>
							<td align="center" valign="top"
								class="grid-bg common-text">
								<s:property value="#attr.row.items.currency.symbol" /><s:property value="#attr.row.items.shipPayment"/>
							</td>
						</tr>
						<s:if test="#attr.row.note != null && #attr.row.note != ''">
						<tr>
							<td class="common-text" colspan="9" bgcolor="#EEEEEE">
								<b><s:text name="label_My_Note" />:&nbsp;&nbsp;&nbsp; </b><s:property value="#attr.row.note"/>
							</td>
						</tr>
						</s:if>
					</table>
				</display:column>
			</display:table>
		</td>
	</tr>
</table>
